package com.hopu.v1.controller.admin.classes;

import com.hopu.v1.pojo.classes.ClassCourseProgress;
import com.hopu.v1.pojo.common.R;
import com.hopu.v1.service.admin.classes.ClassCourseProgressService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;


/**
 * 班级课程进度表(ClassCourseProgress)表控制层
 *
 * @author makejava
 * @since 2024-09-25 16:28:20
 */
@RestController
@RequestMapping("/api/v1/admin/classCourseProgress")
public class ClassCourseProgressController {
    /**
     * 服务对象
     */
    @Resource
    private ClassCourseProgressService classCourseProgressService;

    /**
     * 查询所有
     * @return
     */
    @GetMapping("selectAll")
    public R ClassCourseList() {
        return R.ok(classCourseProgressService.ClassCourseList());
    }


    @PostMapping("/insert")
    public R insertClassCourseProgress(ClassCourseProgress classCourseProgress) {
        classCourseProgressService.insertClassCourseProgress(classCourseProgress);
        return R.ok("班级此课程已结束");
    }
}

